package com.shopping_back.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("full_reduction_item")
public class FullReductionItem {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long activityId;
    private Long skuId; // 新增 sku_id 字段
    private BigDecimal threshold;
    private BigDecimal discount;

    // 关联字段，非数据库字段
    @TableField(exist = false)
    private String skuName;
    @TableField(exist = false)
    private String spuMainImage;
    @TableField(exist = false)
    private String skuImage;
    @TableField(exist = false)
    private BigDecimal skuPrice; // 商品原始价格
}
